<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8"/>
    <link th:href="@{/static/bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
    <style>
        .col-1-2 {
            width: 50%;
            display: inline-block;
            float: left;
        }

        .col-1-2 div {
            border-bottom: 1px solid #9d9d9d;
            height: 40px;
            line-height: 40px;
        }
    </style>

</head>
<body style="width: 380px;padding: 30px">
<div style="width: 100px;margin: 0 auto">
    <img th:src="${user.img}" style="margin: 0 auto" class="img-circle" height="100"/>
</div>
<div>
    <div class="col-1-2 text-right">
        <div>ID号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
        <div>登陆账号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
        <div>用户名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
        <div>创建时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
        <div>角色&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

    </div>
    <div class="col-1-2">
        <div th:text="' '+${user.id}"></div>
        <div th:text="' '+${user.name}"></div>
        <div th:text="' '+${user.nickname}"></div>
        <div th:text="' '+${user.createTime}"></div>
        <div th:text="' '+${user.role.name}"></div>

    </div>

</div>
<div style="text-align: center;margin: 210px 0 10px 0">可访问的资源</div>
<div>
    <span th:each="p:${user.role.permissions}">
        <span th:text="${p.name}"></span>
    </span>
</div>
</body>
</html>